package com.yxr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxr.domain.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
/**
 * 菜单权限表(Menu)表数据库访问层
 *
 * @author makejava
 * @since 2024-07-11 17:51:09
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<String> selectPeremsByUserId(@Param("userid") Long userid);

    List<Menu> selectAllRouterMenu();

    List<Menu> selectRouterMenuTreeByUserId(Long userId);
}
